package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallGoodsSettleConfMapper;
import org.linlinjava.litemall.db.domain.AgedmallGoodsSettleConf;
import org.linlinjava.litemall.db.domain.AgedmallGoodsSettleConfExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AgedmallGoodsSettleConfService {
    @Resource
    private AgedmallGoodsSettleConfMapper agedmallGoodsSettleConfMapper;

    public AgedmallGoodsSettleConf queryByGoodsId(Integer goodsId) {
        AgedmallGoodsSettleConfExample example = new AgedmallGoodsSettleConfExample();
        example.or().andDeletedEqualTo(false)
                .andGoodsIdEqualTo(goodsId);
        return agedmallGoodsSettleConfMapper.selectOneByExample(example);
    }
}
